﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TT.Logic.Entities;

namespace TT.Logic
{
    public class TTContextInitializer
    : DropCreateDatabaseIfModelChanges<DbContext>
    {
        protected override void Seed(DbContext context)
        {
            context.Players.Add(new Player { FirstName = "Lucas", LastName = string.Empty });
            context.Players.Add(new Player { FirstName = "Dan", LastName = string.Empty });
            context.Players.Add(new Player { FirstName = "Amit", LastName = string.Empty });
            context.Players.Add(new Player { FirstName = "Vishnu", LastName = string.Empty });
            context.Players.Add(new Player { FirstName = "Ben", LastName = string.Empty });
            context.Players.Add(new Player { FirstName = "Lucy", LastName = string.Empty });
            context.Players.Add(new Player { FirstName = "Tommy", LastName = string.Empty });

            
        }
    }
}
